/**
 * 接口处理成功的封装类
 */
export class ApiResult {
  // 返回数据
  private data: any;
  // 错误信息
  private errorMsg: string;
  // 接口是否处理成功
  private success: boolean;

  constructor(data: any, errorMsg: string = '', result: boolean = true) {
    this.data = data;
    this.errorMsg = errorMsg;
    this.success = result;
  }
}
